<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页</title>
    <link rel="stylesheet" href="../lib/layui/css/layui.css" />
    <link rel="stylesheet" href="../css/common/default_style.css" />
    <style>
        iframe{
            width: 100%;
            height: 90%;
            box-sizing: border-box;
        }
        #login-nav-item{
            float:right;
        }
    </style>
</head>

<body onload="checkLogin()">
    <!-- 头部导航 -->
    <ul class="layui-nav " lay-filter="">
        <li class="layui-nav-item"><a href="./home.html" target="_inner">主页</a></li>
        <a id="logo" target="_inner">语扉论坛</a>
        <li class="layui-nav-item" lay-unselect style="float: right;display: none" id="personal-item">
            <a href="javascript:" target="_inner">
                <span id="user-name"></span>
                <img id="avatar" src="../img/avatar/default.png" class="layui-nav-img" alt="2">
            </a>
            <dl class="layui-nav-child" style="text-align: center">
                <dd id="message"><a href="./user/message.html" target="_inner">我的消息<span></span></a></dd>
                <dd id="info"><a href="./user/info.html" target="_inner">个人信息</a></dd>
                <dd id="backend-login" style="display: none;"><a href>后台管理</a></dd>
                <dd style="text-align: center; cursor: pointer"><a onclick="logout()">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item" style="float: right;"><a href="./friend/main.html" target="_inner" >好友</a></li>
        <li class="layui-nav-item" id="msg-item" style="float: right;"><a href="./user/info.html" target="_inner" onclick="msgClicked()" >系统消息</a></li>

        <li class="layui-nav-item" id="login-nav-item" >
            <a href="login/login.html">
                <span>登录</span>
            </a>
        </li>
    </ul>

    <!-- 内容 -->
    <iframe name="_inner" src="home.html">
    </iframe>

    <!-- 页脚 -->
	<div id="footer">
		交流的门扉~<br/>
		Rainf@--yezime928@163.com
	</div>

    <script src="../lib/jquery-3.7.0.js"></script>
    <script src="../lib/layui/layui.js"></script>
    <script src="../js/index.js"></script>
</body>

</html>
<script>

</script>